package com.qingcloud.adminbackend.entity.eid;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 设备编号生成
 * </p>
 *
 * @author wangjinnan
 * @since 2019-04-17
 */
@Data
public class EidGenParam implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 批次数量
     */
    @ApiModelProperty(value = "生成数量", example = "10")
    @Min(value = 1, message = "生成数量要大于0")
    @Max(value = 99999, message = "生成数量要小于100000")
    private int batchCount;

    /**
     * 城市ID
     */
    @ApiModelProperty(value = "城市ID", example = "370800")
    private Integer domainId;

    /**
     * 产品
     */
    @ApiModelProperty(value = "产品类型编号", example = "1")
    @NotNull(message = "产品类型不能为空")
    private int product;

}
